package com.hpp.utils;


public class PageValue {

	private Long total;

	private Object[] rows;

	private Integer prepage;

	private Integer totalpage;

	private Integer nextpage;

	public PageValue(Object[] rows, Long total, Integer prepage,
			Integer totalpage, Integer nextpage) {
		this.rows = rows;
		this.total = total;
		this.prepage = prepage;
		this.totalpage = totalpage;
		this.nextpage = nextpage;
	}

	public PageValue() {
		this.rows = new Object[] {};
		this.total = 0L;
		this.prepage = 0;
		this.totalpage = 0;
		this.nextpage = 0;
	}

	public Long getTotal() {
		return total;
	}

	public void setTotal(Long total) {
		this.total = total;
	}

	public Object[] getRows() {
		return rows;
	}

	public void setRows(Object[] rows) {
		this.rows = rows;
	}

	public Integer getPrepage() {
		return prepage;
	}

	public void setPrepage(Integer prepage) {
		this.prepage = prepage;
	}

	public Integer getTotalpage() {
		return totalpage;
	}

	public void setTotalpage(Integer totalpage) {
		this.totalpage = totalpage;
	}

	public Integer getNextpage() {
		return nextpage;
	}

	public void setNextpage(Integer nextpage) {
		this.nextpage = nextpage;
	}

}
